<template>
  <div>
  <goods-list :arr="arr"></goods-list>
  </div>
</template>

<script>
import axios from "axios"
import { reqCateGoods } from '../../http/http'
export default {
  data(){
    return {
      arr:[]
    }
  },
  activated(){
    reqCateGoods({cateid:this.$route.query.id,type:this.$route.query.type}).then((res)=>{
      this.arr=res.data.list.goodData?res.data.list.goodData:[];
    })
  }
}
</script>

<style scoped>

</style>